import request from '@/utils/request';
import { HomeParams, HomeDetailParams } from './data'

export async function getLogin(params: HomeParams) {
  console.log(params, '基本信息请求参')
  // getLogin: '/consult/api/ad/adAccount/getAccountInfo', // 登录后首页
  return request('/api/ad/adAccount/getAccountInfo', {
    method: 'POST',
    data: params,
  });
}

export async function getDetail(params: HomeDetailParams) {
  console.log(params, '基本详情信息请求参')
  // /consult/api/ad/adAccount/getTodayAccountCount
  return request('/api/ad/adAccount/getTodayAccountCount', {
    method: 'POST',
    data: params,
  });
}
